package com.naiterui.ehp.bs.file.api.bo;

import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文件传输bo
 * 
 * @author yangfuya
 * @since 2021/9/10
 */
@ApiModel("文件传输bo")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class FileParamBO implements Serializable {

    private static final long serialVersionUID = -8326608945960052673L;
    @ApiModelProperty("文件header")
    @NotNull(message = "文件header信息不能为空")
    private FileHeaderBO fileHeader;

    @ApiModelProperty("文件路径")
    private String filePath;

    @ApiModelProperty("文件文件集合")
    private List<String> filePaths;

    @ApiModelProperty("失效时长")
    private Integer timeLength;

    @Builder.Default
    @ApiModelProperty("时间校验; 默认打开")
    private Boolean timeCheck = true;

    @Builder.Default
    @ApiModelProperty("是否开启ip校验; 默认开启")
    private Boolean ipCheck = true;

    @Builder.Default
    @ApiModelProperty("是否开启ua校验; 默认关闭")
    private Boolean uaCheck = false;

    @Builder.Default
    @ApiModelProperty("是否开启referer校验; 默认关闭")
    private Boolean refererCheck = false;
}
